package cn.neusoft.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 控制器开发方式
 * 普通类+注解
 */
@Controller
public class HelloController {

    @ResponseBody  //将响应数据转成json  springmvc中集成了jackson
    @RequestMapping("/hello")
    public String hello(){
        System.out.println("----HelloController--hello-----");
        return "success";
    }

}
